//
//  ContactpersonViewController.m
//  ZHD_address book
//
//  Created by Macmini on 17/9/25.
//  Copyright © 2017年 Macmini. All rights reserved.
//

#import "ContactpersonViewController.h"
#import "MyTableViewCell.h"
@interface ContactpersonViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UITableView *myTabelView;
@property (weak, nonatomic) IBOutlet UIView *headView;

@end

@implementation ContactpersonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.nameLabel.text = self.name;
    [self.myTabelView registerNib:[UINib nibWithNibName:@"MyTableViewCell" bundle:nil] forCellReuseIdentifier:@"mycell"];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    MyTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"mycell"];
    cell.telLabel.text = _tel;
//    [cell.telButton setTitle:@"" forState:UIControlStateNormal];
//    [cell.newsButton setTitle:@"" forState:UIControlStateNormal];
//    [cell.telButton setImage:[UIImage imageNamed:@"拨打电话"] forState:UIControlStateNormal];
//    [cell.newsButton setImage:[UIImage imageNamed:@"发短信"] forState:UIControlStateNormal];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
